package mysql

import "gorm.io/gorm"

type Shop struct {
	gorm.Model
	ShopName string  `gorm:"type:varchar(30)"`
	Address  string  `gorm:"type:varchar(50)"`
	Phone    string  `gorm:"type:varchar(30)"`
	State    string  `gorm:"type:varchar(30)"`
	Price    float64 `gorm:"type:decimal(10,2)"`
	Image    string  `gorm:"type:varchar(500)"`
}

type Orders struct {
	gorm.Model
	ShopId     int    `gorm:"type:int(10)"`
	OrdersItem string `gorm:"type:varchar(30)"`
	OrdersNum  int    `gorm:"type:int(10)"`
}
